<% form_for :doc, @doc, :url => { :action => "create" } do |f| %>
  <%= render :partial => f %>
  <label>&nbsp;</label><%= submit_tag 'Create' %>
  <%= link_to_function('Cancel','if(confirm("Sure ?")) $("new").update("")', {:class=>"button"}) %>
<% end %>

